package cn.edu.zafu.bigdata.yt;

public class Circle_yt extends Shape_yt {
    private double radius;

    public Circle_yt(double radius) {
        this.radius = radius;
    }

    @Override
    public double area() {
        return Math.PI * radius * radius;
    }

    @Override
    public double perimeter() {
        return 2 * Math.PI * radius;
    }
    
}


